package com.ruoyi.common.utils;

import java.util.List;

/**
 * @author xiesm
 * @Description: TODO
 * @date 2025-08-28 09:15
 */
public class NumberUtils {
    // 递归生成组合
    public static void generateCombinations(List<Integer> codes, String current, int length, List<String> result) {
        if (length == 0) {
            result.add(current);
            return;
        }

        for (Integer code : codes) {
            generateCombinations(codes, current + code, length - 1, result);
        }
    }
}
